package com.core.cloudcommon.redis.vo;

import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

/**
 * @author =====Lqj=====
 * @className CloudRedisExpireVO
 * @description redis请求入参数
 * @create 2024/11/17 20:28
 **/
@Getter
@Setter
public class CloudRedisVO {

    /**
     * 批量删除key
     */
    private List<String> listKey;

    private String key;

    private Object value;

    /**
     * 时间为空默认两个小时
     */
    private Long time;

    public CloudRedisVO(String key) {
        this.key = key;
    }

    public CloudRedisVO(String key, Object value) {
        this.key = key;
        this.value = value;
    }

    public CloudRedisVO(String key, Object value, Long time) {
        this.key = key;
        this.value = value;
        this.time = time;
    }


    public CloudRedisVO(List<String> listKey) {
        this.listKey = listKey;
    }

}
